{
  // 工具名称
  "name": "set_agent",
  // 工具标题(显示的中文名)
  "title": "修改智能体",
  // 工具描述
  "description": "实现修改已存在的智能体。除了智能体的名字外，都可以修改。仅限人力资源管理大师可用。",
  // 工具分类
  "category": "智能体管理",
  // 工具分组
  "group": "agent",
  // 工具类型, 默认为"function"
  "type": "function",
  // 工具主文件路径
  "main": "./index.js",
  // 工具参数，必要配置，让AI知道需要哪些参数
  "params": [
    {
      "name": "name",
      "description": "智能体名称（英文名，唯一标识）。避免使用特殊字符或空格。避免添加_agent等后缀。",
      "type": "string",
      "required": true
    },
    {
      "name": "title",
      "type": "string",
      "description": "智能体标题(中文名)，输入则表示修改智能体标题。",
      "required": false
    },
    {
      "name": "description",
      "type": "string",
      "description": "智能体描述。50个字符以内，包含职业是什么、负责做什么。",
      "required": false
    },
    {
      "name": "llm",
      "type": "string",
      "description": "智能体使用的大模型。默认使用deepseek_doc。deepseek_chat: 用于对话，deepseek_code: 用于代码生成，deepseek_doc: 用于文档生成，deepseek_media: 用于媒体生成，deepseek_draw: 用于绘图。",
      "enum": [
        "deepseek_chat",
        "deepseek_code",
        "deepseek_doc",
        "deepseek_media",
        "deepseek_draw"
      ],
      "required": false
    },
    {
      "name": "role_prompt",
      "type": "object",
      "description": "定义智能体角色身份的提示词",
      "properties": {
        "name": {
          "description": "智能体角色的姓名",
          "type": "string"
        },
        "age": {
          "description": "智能体角色的年龄",
          "type": "string"
        },
        "gender": {
          "description": "智能体角色的性别",
          "type": "string"
        },
        "occupation": {
          "description": "智能体角色的职业",
          "type": "string"
        }
      }
    },
    {
      "name": "soul_prompt",
      "type": "object",
      "description": "定义智能体灵魂的提示词",
      "properties": {
        "characteristics": {
          "description": "智能体的性格特点，支持Markdown格式",
          "type": "string"
        },
        "expression_style": {
          "description": "智能体习惯的表达方式，支持Markdown格式",
          "type": "string"
        }
      }
    },
    {
      "name": "can_prompt",
      "type": "object",
      "description": "定义智能体自身能力范围的提示词",
      "properties": {
        "can_do": {
          "description": "智能体擅长做的事情列表",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "can_not_do": {
          "description": "智能体不擅长做的事情列表",
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    {
      "name": "should_prompt",
      "type": "object",
      "description": "定义智能体职责权限的提示词",
      "properties": {
        "should_do": {
          "description": "智能体应该做的事情列表",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "should_not_do": {
          "description": "智能体不应该做的事情列表",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "should_ask": {
          "description": "智能体在什么情况下需要请示列表，格式是：“情况描述：请示内容”",
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    {
      "name": "ability_prompt",
      "type": "object",
      "description": "定义智能体需掌握的技能和工具提示词",
      "properties": {
        "skills": {
          "description": "智能体需要掌握的技能列表，格式是：“技能英文名(中文名)：描述需要用它来干什么”",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "tools": {
          "description": "智能体需要调用的工具列表，格式是：“工具英文名(中文名)：描述需要用它来干什么”",
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    {
      "name": "stakeholder_prompt",
      "type": "object",
      "description": "定义智能体干系人和互助关系的提示词",
      "properties": {
        "help_stakeholder": {
          "description": "能给什么人提供帮助列表，格式是：“智能体英文名（中文名）：能帮他干什么”",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "find_stakeholder": {
          "description": "能找什么人做什么列表，格式是：“智能体英文名（中文名）：能找他干什么”",
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    {
      "name": "workflow_prompt",
      "type": "string",
      "description": "智能体工作流程提示词，用于定义智能体按什么流程工作，支持Markdown格式",
      "required": true
    },
    {
      "name": "tools",
      "description": "智能体可调用的工具列表，调用该智能体的时候会预加载的工具",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    {
      "name": "skills",
      "description": "智能体已掌握的技能列表，调用该智能体的时候会预加载的技能提示词",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    {
      "name": "prompts",
      "description": "智能体的附加提示词列表，调用该智能体的时候会预加载的额外提示词",
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  ],
  // 工具返回值，非必要配置
  "returns": [
    {
      "name": "agent",
      "type": "object",
      "description": "该智能体的详细信息对象",
      "required": true
    },
    {
      "name": "code",
      "type": "number",
      "description": "操作代码",
      "default": 0
    },
    {
      "name": "msg",
      "type": "string",
      "description": "操作消息",
      "default": ""
    }
  ]
}